﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WebEvaluateForm.aspx.cs" Inherits="Wsbs_WebEvaluateForm" %>

<%@ Register Src="~/UserControls/WebNewHead.ascx" TagPrefix="uc1" TagName="WebNewHead" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html;" />
    <title>申请人满意度评价表</title>
    <script src="../ScriptFile/jquery.js"></script>
    <script src="../ScriptFile/Common/Jquery.Common.js"></script>
    <script src="../ScriptFile/Common/Jquery.Global.js"></script>

    <style type="text/css">
        div {
            margin: 0 auto;
        }
    </style>

</head>
<body>
    <form id="form1" runat="server">
        <script type="text/javascript">
            var urlhost = Common.GetLocalPath();

            function iFrameHeight() {
                var ifm = document.getElementById("iframepage");
                var subWeb = document.frames ? document.frames["iframepage"].document :
        ifm.contentDocument;
                if (ifm != null && subWeb != null) {
                    ifm.height = subWeb.body.scrollHeight;
                }
            }

            window.onload = function loadIframe() {
                var urlType = request.QueryString("type");
                var urlIid = request.QueryString("iid");
                var urlSj = request.QueryString("sj");
                var ifm = document.getElementById("iframepage");
                if (urlType == "0") {
                    var url = urlhost + '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["sqrPingJiaUrl"]%>';

                    ifm.src = url + '&readonly=false&UserId=-1&input_index=0&sj=' + urlSj + '&iid=' + urlIid + '';
                }
                else if (urlType == "1") {//投诉
                    var url = urlhost + '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["sqrTouSuUrl"]%>';
                    ifm.src = url + '&readonly=false&UserId=-1&input_index=0&iid=' + urlIid + '&type=1';

                }
                else {//根据业务类型动态展示通知书
                    var ywlx = decodeURI(urlSj);
                    var url = "";
                    if(ywlx=="建立相对独立的平面坐标系统")
                    {
                        url = urlhost + '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["sqrPmxtTzs"]%>';
                    }
                    else if(ywlx=="外国来华测绘申请")
                    {
                        url = urlhost + '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["sqrWglhchTzs"]%>';
                    }
                    else if(ywlx=="对外提供基础测绘成果")
                    {
                        url = urlhost + '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["sqrDwtgsmcgTzs"]%>';
                    }
                    else if(ywlx=="国家涉密基础测绘成果使用申报")
                    {
                        url = urlhost + '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["sqrSmcgsyTzs"]%>';
                    }
                    else if(ywlx=="地图审核(即送即审)")
                    {
                        url = urlhost + '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["sqrDtshTzs"]%>';
                    }
                    <%--else if (ywlx == "采用国际坐标系") {
                        url = urlhost + '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["sqrCygjzbxTzs"]%>';
                    }
                    else if(ywlx=="永久性测量标志拆迁审批")
                    {
                        url = urlhost + '<%=System.Web.Configuration.WebConfigurationManager.AppSettings["sqrClbzcqTzs"]%>';
                    }--%>
                    ifm.src = url + '&readonly=false&UserId=-1&input_index=0&iid=' + urlIid + '&type=1';
                }
            }
        </script>
        <div>
            <uc1:WebNewHead runat="server" ID="WebNewHead" />

            <div style="width: 1000px; margin: 0 auto; padding-left: 40px; margin-top: 17px; text-align: center">
                <iframe marginheight="0" marginwidth="0" frameborder="0" scrolling="no" width="810" height="100%" id="iframepage" name="iframepage" onload="iFrameHeight()" style="text-align: center; margin: 0 auto"></iframe>
            </div>
        </div>
    </form>
</body>
</html>
